package models;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DrMicrophoneExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DrMicrophoneExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMicroidIsNull() {
            addCriterion("MICROID is null");
            return (Criteria) this;
        }

        public Criteria andMicroidIsNotNull() {
            addCriterion("MICROID is not null");
            return (Criteria) this;
        }

        public Criteria andMicroidEqualTo(Long value) {
            addCriterion("MICROID =", value, "microid");
            return (Criteria) this;
        }

        public Criteria andMicroidNotEqualTo(Long value) {
            addCriterion("MICROID <>", value, "microid");
            return (Criteria) this;
        }

        public Criteria andMicroidGreaterThan(Long value) {
            addCriterion("MICROID >", value, "microid");
            return (Criteria) this;
        }

        public Criteria andMicroidGreaterThanOrEqualTo(Long value) {
            addCriterion("MICROID >=", value, "microid");
            return (Criteria) this;
        }

        public Criteria andMicroidLessThan(Long value) {
            addCriterion("MICROID <", value, "microid");
            return (Criteria) this;
        }

        public Criteria andMicroidLessThanOrEqualTo(Long value) {
            addCriterion("MICROID <=", value, "microid");
            return (Criteria) this;
        }

        public Criteria andMicroidIn(List<Long> values) {
            addCriterion("MICROID in", values, "microid");
            return (Criteria) this;
        }

        public Criteria andMicroidNotIn(List<Long> values) {
            addCriterion("MICROID not in", values, "microid");
            return (Criteria) this;
        }

        public Criteria andMicroidBetween(Long value1, Long value2) {
            addCriterion("MICROID between", value1, value2, "microid");
            return (Criteria) this;
        }

        public Criteria andMicroidNotBetween(Long value1, Long value2) {
            addCriterion("MICROID not between", value1, value2, "microid");
            return (Criteria) this;
        }

        public Criteria andMicrocodeIsNull() {
            addCriterion("MICROCODE is null");
            return (Criteria) this;
        }

        public Criteria andMicrocodeIsNotNull() {
            addCriterion("MICROCODE is not null");
            return (Criteria) this;
        }

        public Criteria andMicrocodeEqualTo(String value) {
            addCriterion("MICROCODE =", value, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicrocodeNotEqualTo(String value) {
            addCriterion("MICROCODE <>", value, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicrocodeGreaterThan(String value) {
            addCriterion("MICROCODE >", value, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicrocodeGreaterThanOrEqualTo(String value) {
            addCriterion("MICROCODE >=", value, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicrocodeLessThan(String value) {
            addCriterion("MICROCODE <", value, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicrocodeLessThanOrEqualTo(String value) {
            addCriterion("MICROCODE <=", value, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicrocodeLike(String value) {
            addCriterion("MICROCODE like", value, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicrocodeNotLike(String value) {
            addCriterion("MICROCODE not like", value, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicrocodeIn(List<String> values) {
            addCriterion("MICROCODE in", values, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicrocodeNotIn(List<String> values) {
            addCriterion("MICROCODE not in", values, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicrocodeBetween(String value1, String value2) {
            addCriterion("MICROCODE between", value1, value2, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicrocodeNotBetween(String value1, String value2) {
            addCriterion("MICROCODE not between", value1, value2, "microcode");
            return (Criteria) this;
        }

        public Criteria andMicronameIsNull() {
            addCriterion("MICRONAME is null");
            return (Criteria) this;
        }

        public Criteria andMicronameIsNotNull() {
            addCriterion("MICRONAME is not null");
            return (Criteria) this;
        }

        public Criteria andMicronameEqualTo(String value) {
            addCriterion("MICRONAME =", value, "microname");
            return (Criteria) this;
        }

        public Criteria andMicronameNotEqualTo(String value) {
            addCriterion("MICRONAME <>", value, "microname");
            return (Criteria) this;
        }

        public Criteria andMicronameGreaterThan(String value) {
            addCriterion("MICRONAME >", value, "microname");
            return (Criteria) this;
        }

        public Criteria andMicronameGreaterThanOrEqualTo(String value) {
            addCriterion("MICRONAME >=", value, "microname");
            return (Criteria) this;
        }

        public Criteria andMicronameLessThan(String value) {
            addCriterion("MICRONAME <", value, "microname");
            return (Criteria) this;
        }

        public Criteria andMicronameLessThanOrEqualTo(String value) {
            addCriterion("MICRONAME <=", value, "microname");
            return (Criteria) this;
        }

        public Criteria andMicronameLike(String value) {
            addCriterion("MICRONAME like", value, "microname");
            return (Criteria) this;
        }

        public Criteria andMicronameNotLike(String value) {
            addCriterion("MICRONAME not like", value, "microname");
            return (Criteria) this;
        }

        public Criteria andMicronameIn(List<String> values) {
            addCriterion("MICRONAME in", values, "microname");
            return (Criteria) this;
        }

        public Criteria andMicronameNotIn(List<String> values) {
            addCriterion("MICRONAME not in", values, "microname");
            return (Criteria) this;
        }

        public Criteria andMicronameBetween(String value1, String value2) {
            addCriterion("MICRONAME between", value1, value2, "microname");
            return (Criteria) this;
        }

        public Criteria andMicronameNotBetween(String value1, String value2) {
            addCriterion("MICRONAME not between", value1, value2, "microname");
            return (Criteria) this;
        }

        public Criteria andBlongcourtIsNull() {
            addCriterion("BLONGCOURT is null");
            return (Criteria) this;
        }

        public Criteria andBlongcourtIsNotNull() {
            addCriterion("BLONGCOURT is not null");
            return (Criteria) this;
        }

        public Criteria andBlongcourtEqualTo(String value) {
            addCriterion("BLONGCOURT =", value, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andBlongcourtNotEqualTo(String value) {
            addCriterion("BLONGCOURT <>", value, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andBlongcourtGreaterThan(String value) {
            addCriterion("BLONGCOURT >", value, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andBlongcourtGreaterThanOrEqualTo(String value) {
            addCriterion("BLONGCOURT >=", value, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andBlongcourtLessThan(String value) {
            addCriterion("BLONGCOURT <", value, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andBlongcourtLessThanOrEqualTo(String value) {
            addCriterion("BLONGCOURT <=", value, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andBlongcourtLike(String value) {
            addCriterion("BLONGCOURT like", value, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andBlongcourtNotLike(String value) {
            addCriterion("BLONGCOURT not like", value, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andBlongcourtIn(List<String> values) {
            addCriterion("BLONGCOURT in", values, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andBlongcourtNotIn(List<String> values) {
            addCriterion("BLONGCOURT not in", values, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andBlongcourtBetween(String value1, String value2) {
            addCriterion("BLONGCOURT between", value1, value2, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andBlongcourtNotBetween(String value1, String value2) {
            addCriterion("BLONGCOURT not between", value1, value2, "blongcourt");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(BigDecimal value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(BigDecimal value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(BigDecimal value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(BigDecimal value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(BigDecimal value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<BigDecimal> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<BigDecimal> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStaffroleIsNull() {
            addCriterion("STAFFROLE is null");
            return (Criteria) this;
        }

        public Criteria andStaffroleIsNotNull() {
            addCriterion("STAFFROLE is not null");
            return (Criteria) this;
        }

        public Criteria andStaffroleEqualTo(String value) {
            addCriterion("STAFFROLE =", value, "staffrole");
            return (Criteria) this;
        }

        public Criteria andStaffroleNotEqualTo(String value) {
            addCriterion("STAFFROLE <>", value, "staffrole");
            return (Criteria) this;
        }

        public Criteria andStaffroleGreaterThan(String value) {
            addCriterion("STAFFROLE >", value, "staffrole");
            return (Criteria) this;
        }

        public Criteria andStaffroleGreaterThanOrEqualTo(String value) {
            addCriterion("STAFFROLE >=", value, "staffrole");
            return (Criteria) this;
        }

        public Criteria andStaffroleLessThan(String value) {
            addCriterion("STAFFROLE <", value, "staffrole");
            return (Criteria) this;
        }

        public Criteria andStaffroleLessThanOrEqualTo(String value) {
            addCriterion("STAFFROLE <=", value, "staffrole");
            return (Criteria) this;
        }

        public Criteria andStaffroleLike(String value) {
            addCriterion("STAFFROLE like", value, "staffrole");
            return (Criteria) this;
        }

        public Criteria andStaffroleNotLike(String value) {
            addCriterion("STAFFROLE not like", value, "staffrole");
            return (Criteria) this;
        }

        public Criteria andStaffroleIn(List<String> values) {
            addCriterion("STAFFROLE in", values, "staffrole");
            return (Criteria) this;
        }

        public Criteria andStaffroleNotIn(List<String> values) {
            addCriterion("STAFFROLE not in", values, "staffrole");
            return (Criteria) this;
        }

        public Criteria andStaffroleBetween(String value1, String value2) {
            addCriterion("STAFFROLE between", value1, value2, "staffrole");
            return (Criteria) this;
        }

        public Criteria andStaffroleNotBetween(String value1, String value2) {
            addCriterion("STAFFROLE not between", value1, value2, "staffrole");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("CREATETIME is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("CREATETIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("CREATETIME =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("CREATETIME <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("CREATETIME >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATETIME >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("CREATETIME <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATETIME <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("CREATETIME in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("CREATETIME not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("CREATETIME between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATETIME not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatenameIsNull() {
            addCriterion("CREATENAME is null");
            return (Criteria) this;
        }

        public Criteria andCreatenameIsNotNull() {
            addCriterion("CREATENAME is not null");
            return (Criteria) this;
        }

        public Criteria andCreatenameEqualTo(String value) {
            addCriterion("CREATENAME =", value, "createname");
            return (Criteria) this;
        }

        public Criteria andCreatenameNotEqualTo(String value) {
            addCriterion("CREATENAME <>", value, "createname");
            return (Criteria) this;
        }

        public Criteria andCreatenameGreaterThan(String value) {
            addCriterion("CREATENAME >", value, "createname");
            return (Criteria) this;
        }

        public Criteria andCreatenameGreaterThanOrEqualTo(String value) {
            addCriterion("CREATENAME >=", value, "createname");
            return (Criteria) this;
        }

        public Criteria andCreatenameLessThan(String value) {
            addCriterion("CREATENAME <", value, "createname");
            return (Criteria) this;
        }

        public Criteria andCreatenameLessThanOrEqualTo(String value) {
            addCriterion("CREATENAME <=", value, "createname");
            return (Criteria) this;
        }

        public Criteria andCreatenameLike(String value) {
            addCriterion("CREATENAME like", value, "createname");
            return (Criteria) this;
        }

        public Criteria andCreatenameNotLike(String value) {
            addCriterion("CREATENAME not like", value, "createname");
            return (Criteria) this;
        }

        public Criteria andCreatenameIn(List<String> values) {
            addCriterion("CREATENAME in", values, "createname");
            return (Criteria) this;
        }

        public Criteria andCreatenameNotIn(List<String> values) {
            addCriterion("CREATENAME not in", values, "createname");
            return (Criteria) this;
        }

        public Criteria andCreatenameBetween(String value1, String value2) {
            addCriterion("CREATENAME between", value1, value2, "createname");
            return (Criteria) this;
        }

        public Criteria andCreatenameNotBetween(String value1, String value2) {
            addCriterion("CREATENAME not between", value1, value2, "createname");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}